-- GENERATED SPELL FOR [Raven's Wood Stonebark] --


function spell0_21325(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(37823,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21325', 11500, 1)
end

function spell1_21325(pUnit, Event) --@Stomp,n/a--
pUnit:FullCastSpellOnTarget(12612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21325', 676, 1)
end

function spell2_21325(pUnit, Event) --@Wild Regeneration,Self--
pUnit:FullCastSpellOnTarget(37709,pUnit)
pUnit:RegisterEvent('Sorts_21325', 13000, 1)
end

function Sorts_21325(pUnit, Event)
local choix_sorts_21325 = math.random(0, 2)
if choix_sorts_21325 == 0 then
pUnit:RegisterEvent('spell0_21325', 1, 1)
end
if choix_sorts_21325 == 1 then
pUnit:RegisterEvent('spell1_21325', 1, 1)
end
if choix_sorts_21325 == 2 then
pUnit:RegisterEvent('spell2_21325', 1, 1)
end
end

function mob21325_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21325', math.random(1500, 3000), 1)
end

function mob21325_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21325_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21325_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21325, 1, 'mob21325_Action')
RegisterUnitEvent(21325, 2, 'mob21325_Leave')
RegisterUnitEvent(21325, 3, 'mob21325_Kill')
RegisterUnitEvent(21325, 4, 'mob21325_Die')
